package com.yeshine.opendata.service;

import com.yeshine.opendata.utils.TreeModel;
import com.yeshine.opendata.core.IService;
import com.yeshine.opendata.entity.SysModel;
import com.yeshine.opendata.entity.SysRole;
import com.yeshine.opendata.utils.Result;

import java.util.List;

/**
 * Created by taohj on 2014/9/3.
 */
public interface ISysRoleService extends IService<SysRole> {


    Result authorization(int role, int[] models);

    List<SysModel> getPermission(int role);

    List<TreeModel> getTreeModel(int role);

    public List<TreeModel> getTreeModel(List<TreeModel> models);
}
